/*
 * vip中用到的模板资源，追加在免费邮箱的模板资源之后
 */

// vip邮箱配置选项的模板（重写免费中的模板）
var mailCfgTemplate = '<div class="cfgoption">'
		+ '<h4>配置选项<b style="font-weight:normal;">&nbsp;&nbsp;[<a hidefocus="true" href="main" class="grey s_main_page" style="margin:0px;">返回邮箱首页</a>]</b></h4><br />'
		+ '<h5 id="cfgSuccMsg" style="display:none;width:697px;"><img src="'
		+ MailConst.ALL
		+ '/icon_ok.gif" align="absmiddle" />配置选项修改成功!</h5>'
		
		+ '<ul>'
		+ '<dt>个人邮箱设置</dt>'
		+ '<dl><dd><a href="http://vip.sohu.com/mng/modify_pw.jsp" target="_blank">修改密码</a></dd><dd><a href="http://vip.sohu.com/editInfoAction.action" target="_blank">修改个人注册信息</a></dd><dd><a href="javascript:;" class="s_cfg_white">白名单</a></dd><dd><a href="javascript:;" class="s_cfg_refuse">黑名单</a></dd></dl>'
		+ '<ol><li>设置安全强度高、便于记忆的密码</li><li>更改姓名、地址等个人信息</li><li>不拒收来自某个发件地址的邮件</li><li>将某个发件地址拒收</li></ol>'
		+ '</ul>'
		
		+ '<ul>'
		+ '<dt>基本参数</dt>'
		+ '<dl><dd><a href="javascript:;" class="s_cfg_set">基本设置</a></dd><dd><a href="javascript:;" class="s_cfg_sender">发件人信息</a></dd><dd><a href="javascript:;" class="s_cfg_reply">自动回复和转发</a></dd><dd><a href="javascript:;" class="s_cfg_setsend">定时邮件列表</a></dd></dl>'
		+ '<ol><li>设置阅读、发送习惯选项</li><li>设置邮件发出后的显示信息</li><li>设置邮箱的自动回复和转发功能</li><li>在未来的时间里给朋友发一封邮件</li></ol>'
		+ '</ul>'
		
		+ '<ul>'
		+ '<dt>反垃圾过滤功能</dt>'
		+ '<dl><dd><a href="javascript:;" class="s_cfg_filter">邮件自动分类</a></dd><dd><a href="javascript:;" class="s_cfg_filterlevel">过滤安全级别设置</a></dd><dd><a href="javascript:;" class="s_vip_cleanvirus">杀毒功能设置</a></dd></dl>'
		+ '<ol><li>将邮件自动分类，设置拒收等</li><li>提高垃圾邮件过滤效果</li><li>远离病毒邮件侵袭</li></ol>'
		+ '</ul>'
		
		+ '<ul>' 
		+ '<dt>手机邮件服务</dt>'
		+ '<dl><dd><a href="javascript:;">服务设置</a></dd><dd><a href="http://vip.sohu.com/mo/help/mobileHelp.html" target="_blank">服务介绍</a></dd></dl>'
		+ '<ol><li>开通/关闭手机提醒及短信提醒条件设置</li><li>手机提醒服务详细介绍</li></ol>'
		+ '</ul>'
		
		+ '<ul>'
		+ '<dt>邮箱相关信息</dt>'
		+ '<dl><dd><a href="http://vip.sohu.com/listpaymentLogAction.action" target="_blank">付费记录</a></dd><dd><a href="http://vip.sohu.com/mng/vipactivity.jsp?email='+ UserSohuID +'" target="_blank">VIP贵宾专区</a></dd><dd><a href="http://vip.sohu.com/querymailInfoAction.action" target="_blank">邮箱信息</a></dd>'
		//+ '<dd><a href="http://vip.sohu.com/revert/revertAuth.jsp" target="_blank">还原邮箱</a></dd>'
		+ '</dl>'
		+ '<ol><li>邮箱缴费记录清单</li><li>可查询帐户参与的贵宾区活动</li><li>可查询邮箱基本参数及到期时间</li>'
		//+ '<li>还原至同名升级前的闪电邮箱</li>'
		+ '</ol>'
		+ '</ul>'
		
		+ '</div>' ;
		
//过滤安全级别（quzhi）
var mailSecurityLevelTemplate = '<div class="cfgtemplate">'
	    +'<div class="corner"><h4>过滤安全级别设置 <b>[<a href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	    +'<dl>'
		+'<dd>通过级别设置可以调整邮箱的垃圾信判断能力；</dd>'
		+'<dd>推荐使用[高级]选项，这样所有发送到您邮箱的邮件都将经过全方位的过滤</dd>'
        +'</dl>'
        +'<dl>'
	    +'<dd><input type="radio" name="setantispam" id="setantispam1" value="1"  #{lowlevel} />   低级</dd>'
	    +'<dd><input type="radio" name="setantispam" id="setantispam2" value="2" #{middlelevel} /> 	中级</dd>'
	    +'<dd><input type="radio" name="setantispam"  id="setantispam3" value="3" #{highlevel} /> 	高级</dd>'
	    +'<dd style="margin-top:5px;"><input name="确定" type="button"  class="yes s_set_filterlevel" value="确 定" />'　
        +'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="取消" type="button"  class="yes s_cfg_main" value="取 消" /></dd>'
  	    +'</dl>'
        +'</div>';
		
//杀毒功能（quzhi）       
var mailAntivirusTemplate ='<div class="cfgtemplate">'
	   +'<div class="corner"><h4>杀毒功能设置<b>[<a href="javascript:;" class="grey s_cfg_main">返回选项首页</a>]</b></h4></div>'
	   +'<dl>'
	   +'<dd>邮箱的杀毒功能已由系统默认设置完成！</dd>'
	   +'<dd>收费邮箱采用超级杀毒引擎，</dd>'
	   +'<dd>您接收的每一封邮件都会经过严格的病毒检查，</dd>'
       +'<dd>如果收到的邮件附件带有病毒，系统会自动删除附件，并且会在原邮件中告知您病毒附件已被删除。</dd>'
	   +'<dd style="margin-top:5px;"><input name="确 定" type="button" class="yes s_cfg_main" value="确 定" /></dd>'
	   +'</dl>'
       +'</div>';

// vip 贵宾区模板
var vipAreaTemplate = '<div class="cfgspecial">'
	+'<h4>贵宾专区  <span><a href="javascript:;" class="grey s_rt_inbox">[返回收件箱]</a>　——享受与各行业知名网站的双重VIP身份，拥有专享的服务！</span></h4>'
    //更新原来的错误url,并且加入新的url
    //alva
    +'<p><a target="_blank" href="http://vip.sohu.com/mng/vipactivity.jsp?email='+UID+'" ><font color="#ff6600" size="2" >VIP贵宾区记录&gt;&gt;</font></a>'
    +'</p>'
	
	+'<div class="area-box">'
	+'<div>'
    +'<div style="float:left;width:160px;"><div class="aimg img-vip1"></div></div>'
	+'<div style="float:left;width:260px;">'+ USE_SYS.title +'邮箱与<a href="http://www.7shop24.com"  target="_blank" class="orange">天天购物网</a>，共同打造“快乐妆点，时尚白领”生活。开通服务后，您在天天购物网消费，可享受该网站最高等级白金会员价格！<a href="http://ad.mail.sohu.com/mail/tg/091009tiantgw.html"  target="_blank">了解详细&gt;&gt;</a>'
    +'<input type="button" value="我要开通" class="s_use_shop" />'
    +'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="area-box">'
	+'<div>'
	+'<div style="float:left;width:160px;"><div class="aimg img-vip2"></div></div>'
	+'<div style="float:left;width:260px;">'+ USE_SYS.title +'邮箱与<a href="http://www.china-pub.com/" class="orange" target="_blank">中国互动出版网</a>，'
	+'联合推出“双重VIP读享天下”。开通此服务，您可拥有China-pub五星级会员身份，享有比普通会员更优惠的购书价格。'
	+'<a href="http://ad.mail.sohu.com/mail/tg/vipchina-pub.html" target="_blank">了解详细&gt;&gt;</a>'
	+'<input type="button" value="我要开通" class="s_china_pub" />'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="area-box">'
	+'<div>'
	+'<div style="float:left;width:160px;"><div class="aimg img-vip3"></div></div>'
	+'<div style="float:left;width:260px;">'+ USE_SYS.title +'邮箱与<a href="http://www.goldenholiday.com" target="_blank" class="orange">黄金假日旅游网</a>，联合推出了“轻松旅游，一触即发”活动。在打折机票基础上，您可享受3%-15%的优惠！同时还为您量身打造多款超值旅游套餐！'
	+'<input type="button" value="我要开通" class="s_golden_holiday" />'
	+'</div>'
	+'</div>'
	+'</div>'
	+'</div>';
	
// vip 商务通模板
//add by zhangyinghui 
//商务通
var vipBusinessTemplate = 
	'<div class="cfgspecial">'
	+'<h4>商务通 <span><a href="javascript:;" class="grey s_rt_inbox">[返回收件箱]</a>　——您的24小时商务管家,专为VIP邮箱高端商务用户量身打造！</span></h4>'
    +'<h5 style="display: none; " id="commerceSuccMsg"><img align="absmiddle" src="'+MailConst.ALL+'/icon_ok.gif"/>提交成功!</h5>'
	//更新原来的错误url,并且加入新的url
	
	+'<div class="business-box">'
	+'<div>'
    +'<div style="float:left;width:80px;"><div class="bimg img-business1"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_translate_demo" style="cursor:pointer;"><b>在线全文翻译</b></div>'
	+'<div>英汉双向词典，写/读信均可划词翻译邮件，沟通无障碍！</div>'
	+'<div>(仅对S320,S600邮箱开放)</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="business-box">'
	+'<div>'
	+'<div style="float:left;width:80px;"><div class="bimg img-business2"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_stock_demo" style="cursor:pointer;"><b>股票时时通</b></div>'
	+'<div>大盘走势，自选股净值，财经新闻……尽收眼底！</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="business-box">'
	+'<div>'
	+'<div style="float:left;width:80px;"><div class="bimg img-business3"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_sign_demo" style="cursor:pointer;"><b>名片签名</b></div>'
	+'<div>企业信息模板化输入，让您的商务信息无限传递！</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	
	+'<div class="business-box">'
	+'<div>'
	+'<div style="float:left;width:80px;"><div class="bimg img-business4"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_custom_demo" style="cursor:pointer;"><b>商信计划</b></div>'
	+'<div>方便快捷的维系客户关系网，让你的问候不间断传递。</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="business-box">'
	+'<div>'
	+'<div style="float:left;width:80px;"><div class="bimg img-business5"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_pop_demo" style="cursor:pointer;"><b>超级邮霸</b></div>'
	+'<div>自动收取您的其它邮箱账号邮件，一箱多邮，轻松管理。</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'<div class="business-box">'
	+'<div>'
	+'<div style="float:left;width:80px;"><div class="bimg img-business6"></div></div>'
	+'<div style="float:left;width:190px;">'
	+'<div class="s_map_demo" style="cursor:pointer;"><b>在线地图</b></div>'
	+'<div>聚会地点随信发送；全国各大城市卫星地图尽收眼底！</div>'
	+'</div>'
	+'</div>'
	+'</div>'
	
	+'</div>';



var translateOnlineTemplate='<div class="cfgtemplate">'
	+'<div class="corner">  '
	+'<h4>在线翻译<b>[<a href="javascript:;" class="grey s_rt_business">返回商务通首页</a>]</b></h4>'
	+'</div>'
	+'<dl>'
	+'<div class="bimg img-business1" style="float:left;"></div>'
	+'<div style="float:left;">'
	+'<dd class="orange">仅对S320,S600邮箱开放</dd>';
	translateOnlineTemplate += G.hasTranslateRights()?"":('<dd>● 由于您的邮箱类型为S220，无法使用在线全文翻译功能,<br/>'
		+'● 立即 <input type="button" value="升级邮箱" onclick="window.open(\'http://vip.sohu.com/upgrade/init.jsp?user=vip220\')" />'
		+' 到S320或S600后即可开通在线翻译。</dd><br />');

	translateOnlineTemplate += '<dd>'+ USE_SYS.title +'邮箱联合金山公司全力打造---首家邮件在线翻译,<br/>'
		+'让您轻松处理英文邮件，沟通无障碍！'
		+'</dd>'
		+'</div>'
		+'<div style="clear:both"></div>'
		+'</dl>'
		+'<dl>'
		+'<dd><strong>● 更强大的翻译功能---全文翻译</strong></dd>'
		+'<dd class="grey">'
		+'强大的中英自动翻译功能（含中->英，英->中的单词，词语，短语，全文翻译）。</dd>'
		+'<dd><strong>● 使用简单，即开即用</strong></dd>'
		+'<dd class="grey">无需安装任何插件，不占空间。仅在邮箱写信/读信页开启翻译功能，即可使用。</dd>'
		+'<dd><img src="'+MailConst.ALL+'/demo_jinshan.jpg" /></dd>'
		+'<dd><strong>● 邮件内容划词即译！解释随心看！</strong></dd>'
		+'<dd  class="grey">领先的即划即译技术集成了查词，句库及翻译功能'
		+'鼠标选取邮件正文中的任意单词，词组，全文即可翻译。</dd>'
		+'<dd><strong>● 经典词典，准确！ 传承金山词霸十年内容品质！</strong></dd>'
		+'<dd class="grey">收录《现代英汉综合大词典》、《汉英词典》(新) 等经典词典，涵盖金山词霸百万余词条。</dd>'
		+'</dl>'
		+'</div>';
	
	
//股票时时通
var stockTemplate = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h4>股票时时通<b>[<a href="javascript:;" class="grey s_rt_business">返回商务通首页</a>]</b></h4>'			
	+'</div>'
	+'<div><h5 style="margin:10px;display:none" id="ID_STOCK_MSG"><img align="absmiddle" src="' + MailConst.ALL + '/icon_ok.gif"/><span></span></h5></div>'
	+'<dl style="height:200px;">'
	+'<div class="bimg img-business2" style="float:left;"></div>'
	+'<div style="float:left;">'
	+'<dd><strong>实时大盘数据</strong></dd>'
	+'<dd class="grey">显示上证，深成走势图。</dd>'
	+'<dd><strong>自选股净值</strong></dd>'
	+'<dd class="grey">关注的股票涨跌情况，交易时间由您掌控！</dd>'
	+'<dd><strong>股票搜索</strong></dd>'
	+'<dd class="grey">'
	+'通过股票名称或股票代码，查询该股详细数据。</dd>'
	+'<dd><strong>财经新闻</strong></dd>'
	+'<dd class="grey">'
	+'最新的财经资讯滚动出现，关注全球经济动态。</dd>'
	+'</div>'
	+'<div style="float:left;"><img src="'+MailConst.ALL+'/pic_fund.gif" /></div>'
	+'</dl>'
	+'<dl>'
	+'<dd>请选择是否开启【股票时时通】模块</dd>'
	+'<dd class="grey">（注：开启后，再次登陆邮箱时此模块会在欢迎页显示）</dd>'
	+'<dd>'
	+'<input name="radiobutton" type="radio" value="radiobutton" checked="checked" />'
	+'开启    '
	+'<input type="radio" name="radiobutton" value="radiobutton" />'
	+'关闭</dd>'
	+'<dd><button onclick="profile_set({feedstock:document.getElementsByName(\'radiobutton\')[0].checked?1:0},function(r){if(r.is_success){PROFILE.feedstock=(document.getElementsByName(\'radiobutton\')[0].checked?1:0);jsoplog.ucCapture(\'stock_open\' );var o=$(\'ID_STOCK_MSG\');o.style.display=\'\';o.lastChild.innerHTML=\'保存成功\';}})">保存</button></dd>'
	+'</dl>'
	+'</div>';
	
// 在线地图
var mapOnlineTemplate='<div class="cfgtemplate">'
	+'<div class="corner">  '
	+'<h4>在线地图<b>[<a href="javascript:;" class="grey s_rt_business">返回商务通首页</a>]</b></h4>'
	+'</div>'
	+'<dl style="height:100px;">'
	+'<div class="bimg img-business6" style="float:left;"></div>'
	+'<div style="float:left;">'
	+'<dd class="orange">仅对S320,S600邮箱开放</dd>';
	mapOnlineTemplate += G.hasMapRights()?"":('<dd>由于您的邮箱类型为S220，无法使用在线地图功能,<br/>'
	+'立即 <input type="button" value="升级邮箱" onclick="window.open(\'http://vip.sohu.com/upgrade/init.jsp?user=vip220\')" />'
	+' 到S320或S600后即可使用该功能。</dd><br />');

	mapOnlineTemplate += USE_SYS.title + '邮箱联合sogou地图全力打造——首家交互式在线地图搜索邮箱<br />'
	+'聚餐、约会、地点搜索……邮箱一键搞定！'
	+'</dd>'
	+'</div>'
	+'</dl>'
	+'<dl>'
	+'<dd><strong>最先进的地图搜索技术</strong></dd>'
	+'<dd class="grey">'
	+'先进的动态显示和数据交互技术，具有直观、信息更新快等特点。</dd>'
	+'<dd><img src="'+MailConst.ALL+'/demo_map.jpg" /></dd>'
	+'<dd><strong>交互式在线地图</strong></dd>'
	+'<dd class="grey">写信页可直接搜索地点，以图片/链接发送朋友</dd>'
	+'<dd><strong>智能展现搜索地区</strong></dd>'
	+'<dd class="grey">自动识别登陆IP，默认显示为搜索地区（支持全国30多个省/直辖市）</dd>'
	+'<dd><strong>平面地图与卫星地图的无缝切换</strong></dd>'
	+'<dd class="grey">通过卫星地图可以清楚地看到地面上的建筑、汽车、树木，甚至是道路上的标线。最高分辨率达到了世界商用卫星图片服务的极限。</dd>'
	+'</dl>'
	+'</div>';			

//地图模板
var mapTemplate = {
	winTitle:'<div id="logoMap">'
			+'<span style="margin-right:5px;position:relative;top:5px;"><img src="'+MailConst.ALL+'/sogou_maps_logo.gif" /></span>'
			+'<span style="">省份：<select id="mProvince"><option>---</option></select></span>'
			+'<span style="">关键词：<input type="text" id="mapKey" style="width:60px"/></span>'
			+'<span style="margin-right:5px;"><input type="button" value="搜索" class="s_map_search" /></span>'
			+'<span style="margin-right:5px;cursor:pointer;"><img src ="'+MailConst.ALL+'/dw.gif"  onclick="customDialog.ding();return false;" id="fix"/></span>'
			+'<span style="cursor:pointer;"><img src="'+MailConst.ALL+'/close2.gif" class="s_map_dialog_close"/></span>'
			+'</div>',
	winContent:'<div id="bottomMapbar" style="border-top:1px solid #999999;text-align:center;height:30px;background:#EDF5F7 none repeat scroll 0 0">'
			 +'<input  style="margin-top:2px;margin-right:2px;" type="button" class="s_map_save" value="以链接形式发送"  id="linkMap"/>'
			 +'</div>'
}
// 设置签名
var cardSignTemplate = '<div class="cfgtemplate">'
		+ '<div class="corner">'
		+'<h4>设置签名<b>[<a href="javascript:;" class="grey s_rt_business">返回商务通首页</a>]</b></h4>'
		+'</div>'
		+'<dl style="color:#777;">'
		+ '<div class="bimg img-business4" style="float:left"></div>'
		+'<dd>搜狐VIP邮箱专为商务用户量身打造了3款个性签名：</dd>'
		+'<dd>1）图片签名---上传照片，创建您的个性头像签名。</dd>'
		+'<dd>2）名片签名---企业信息模板化输入，让您的商务信息无限传递！</dd>'
		+'<dd>3）HTML签名---支持HTML编辑，文字，URL一个都不少！</dd>'
		+'</dl>'
		+ '<dl><dt >图片签名</dt><dd>#{image_signature}启用&nbsp;&nbsp;&nbsp;&nbsp;<a title="请点击上传按钮设计您的图片签名!"><img src="#{image_path}" align="absbottom" id="demoimg" style="width:148px;height:106px;cursor: pointer;"/></a></dd>'
		+ '<dd style="margin-top:15px;">修改图片：'
		+ '<form id="file_upload_img" enctype="multipart/form-data" target="file_upload_image" method="post" action="/sign/act/UploadPicture?flag=0&domain=0&email='+ UserSohuID +'" name="file_upload_img" >'
        +'<input type="file" name="upload_image" id="upload_image" />&nbsp;&nbsp;'
        +'<input name="上传" type="button"  class="yes s_cfg_upload" value="上 传" id="uploadImage" />'　
		+'</form>'
      	+'</dd><dd>( 图片建议：2M以内的JPG或GIF图片文件 )</dd>'
        +'<dd></dd></dl>'
		+'<dl id="imgDiv" style="display:none;"><dd >'
		+'<div>'
		+'<div style="height:300px;width:370px;border:1px solid #C0D8DA;float:left;padding:2px;margin-bottom: 10px;">'
		+'<div  style="position: relative;padding-top:5px;text-align:center;width:230px;">'
		+'<div id="bgDiv" style="border:1px solid;left:3px;position:absolute;text-align:center;top:3px;z-index:5;">'
		+'<img src="" style="z-index: 1; width: 360px;border:1px  #CCCCCC;display:block;" id="signImage"/>'
		+'</div>'
		+'</div>'
		+'</div>'
        +'<img style="float:left;margin:55px 15px 0;" alt="" src="'+MailConst.ALL+'/setting_arrow.png"/>'
        +'<div style="float:left;line-height:25px;margin-top:10px;padding:2px;width:104px;">'
		+'<span>图片签名预览</span>'
		+'<div style="border:2px solid #999999;margin:0 0 5px;padding:2px;text-align:center;width:148px;">'
		+'<div id="previewArea" style="height:80px;margin:0;overflow:hidden;width:60px;">'
	    +'</div></div></div>'
		+'<div style="clear:both;display:block;">'
		+'<input type="button"  class="yes" value="保存" name="submit" onclick="docrop();"/>&nbsp;&nbsp;&nbsp;'
		+'<input type="button"  class="yes" value="取消" name="Cancel" onclick="hiddenImg();"/>' 
		+'</div></div>'
		+'</dd></dl>'
		+ '<dl><dt><input type="radio" name="radio" id="radioOne" value="radio" checked class="s_card_sign" />名片签名 <input type="radio" name="radio" id="radioTwo" value="radio" class="s_common_sign" />普通签名</dt>'
        +'<div style="padding-top:2px;line-height:24px;" id="cardsign">'
		
		+'<table cellspacing=0 cellpadding=0 style="border:none;"><col style="width:60px;"></col><col></col><tbody>'
		+'<tr><td>姓　　名：</td><td><input type="text" value="#{username}" class="cfg-sign-input" style="width:auto;" />  部　　门：<input type="text" id="userdepartment" value="#{userdepartment}" class="cfg-sign-input" style="width:auto;" /></td></tr>'
		+'<tr><td>公　　司：</td><td><input type="text" value="#{usercompany}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>网　　址：</td><td><input type="text" value="#{userwebpage}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>办公地址：</td><td><input type="text" value="#{userbusiness_address}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>邮政编码：</td><td><input type="text" value="#{userpostalcode}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>电　　话：</td><td><input type="text" value="#{userphone}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>手　　机：</td><td><input type="text" value="#{usermobile}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>电子邮件：</td><td><input type="text" value="#{useremail}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>传　　真：</td><td><input type="text" value="#{userfax}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>MSN　    ：</td><td><input type="text" value="#{usermsn}" class="cfg-sign-input" /></td></tr>'
		+'<tr><td>QQ　　  ：</td><td><input type="text" id="userqq" value="#{userqq}" class="cfg-sign-input" /></td></tr>'
		+'</tbody></table>'
		/*
		+'<dd>姓　　名：<input type="text" id="username" value="#{username}" class="cfg-sign-input" style="width:auto;" />  部　　门：<input type="text" id="userdepartment" value="#{userdepartment}" class="cfg-sign-input" style="width:auto;" /></dd>'
		+'<dd>公　　司：<input type="text" id="usercompany" value="#{usercompany}" class="cfg-sign-input" /></dd>'
		+'<dd>网　　址：<input type="text" id="userwebpage"  value="#{userwebpage}" class="cfg-sign-input" /></dd>'
		+'<dd>办公地址：<input type="text" id="userbusiness_address" value="#{userbusiness_address}" class="cfg-sign-input" /></dd>'
		+'<dd>邮政编码：<input type="text" id="userpostalcode" value="#{userpostalcode}" class="cfg-sign-input" /></dd>'
		+'<dd>电　　话：<input type="text" id="userphone" value="#{userphone}" class="cfg-sign-input" /></dd>'
		+'<dd>手　　机：<input type="text" id="usermobile" value="#{usermobile}" class="cfg-sign-input" /></dd>'
		+'<dd>电子邮件：<input type="text" id="useremail" value="#{useremail}" class="cfg-sign-input" /></dd>'
		+'<dd>传　　真：<input type="text" id="userfax" value="#{userfax}" class="cfg-sign-input" /></dd>'
		+'<dd>MSN　 &nbsp;&nbsp;：<input type="text" id="usermsn" value="#{usermsn}" class="cfg-sign-input" /></dd>'
		+'<dd>QQ　　  ：<input type="text" id="userqq" value="#{userqq}" class="cfg-sign-input" /></dd>'
		*/
		+'</div>'
		+'<div style="padding-top:2px;width:35%;display:none;" id="commonsign"><div id="ineditorimage" style="height:200px;border:1px solid #E1E1E1;"></div></div>'
		+'<p><input name="确定" value="确　定" type="button" class="yes s_vip_set_sign" />&nbsp;&nbsp;&nbsp;<input name="取消" value="取　消" type="button" class="yes s_rt_business" />&nbsp;&nbsp;&nbsp;<input type="button"  class="yes s_vip_sign_preview" value="预 览" /></p></dl>'
	    + '</div>';

/*商信计划*/
var BussinessEmailOperationTemplate = '<dl class="operate" ><li style="width:0"><h1></h1></li><li style="width:65px;"><a href="#" class="two"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="icons icon_send" align="absmiddle"/></em>发送</a></li><li><a href="#" class="button"><em><img src="'+ MailConst.ALL +'/spacer.gif" width="16px" height="16px" class="icons icon_draft" align="absmiddle"/></em>保存草稿</a></li><li style="width:115px;margin-left:5px;margin-top:8px;"><input name="" type="checkbox" value="" />保存到[已发送]</li><li style="width:110px;margin-top:11px;">10:05 自动保存草稿</li><li style="width:0;float:right;margin-left:3px;_margin:0"><h3></h3></li></dl>';
var BussinessEmailTemplate = '<table class="layout" style="width:100% !important;text-align:left;vertical-align:top;background:white;">'
					+ '<tbody>'
					+ '<tr>'
					+ '<td style="vertical-align:top">'
                    //写邮件
                    + '<div class="write" style="background:#fff;height:auto">'
                    + ' <div class="plan">'
					+ '<div class="bimg img-business4" style="float:left"></div>'
                    + ' <div><strong>商信计划</strong>——智能的商务信函计划，您可定制在半年内，<br/>每周或每月发给商务伙伴一封问候信，方便的维系您的客户关系网!</div>';
					
	BussinessEmailTemplate += G.isFrozen?('<div style="color:red;">冻结期用户将不能使用商信计划功能,请<a href="http://vip.sohu.com/confirmPassportSuccessAction.action?email=' +UID+ '" style="text-decoration:underline;" target="_blank"><font color="red">续费</font></a>。</div>'):"";
					
	BussinessEmailTemplate += '<div style="clear:both">'
                    + '<ul style="width:80%; margin:3px;padding:3px;">'
                    + '<li>收件人：<input type="text" class="input" size="94" onfocus="this.className=\'focus\'" onblur="this.className=\'input1\'" id="business_mail_tos" />'
                    + ' <input name="Input3" id="ccmyself" type="checkbox" value="" />抄送自己</li>'
                    + '</ul>'
                    + '<ul style="width:80%; margin:3px;padding:3px;">'

                    + '<li>主　题：<select id="bsmsubject" onchange="businessmail.changeSubject();" name="select5"><option value="0">祝您身体健康，万事如意！</option><option value="1">祝您工作顺心，步步高升！</option><option value="2" >自定义主题....</option></select>'
					+ '<input type="text" id="customSubject" style="width:300px;display:None;left:300px;" />'
					+ '</li>'
					+ '</li>'
                    + '</ul>'
                    + ' <ul  style="width:80%; margin:3px;padding:3px;"> 类　别：<select id="bsmtype"  onchange="businessmail.selectType();return false;" name=""><option value="0">日常问候</option><option value="1">商务问候</option></select><select id="signtype" onchange="businessmail.changeSign()"><option value="0">选择签名</option><option value="1">文字签名</option><option value="2" >名片签名</option></select></ul> '
                    + '</div>'
                    //预览区域
                    + '<div style="margin-left:12px;">'
                    + '<img src="' + MailConst.ALL + '/business.jpg" id="bsmshow" />'
                    + '</div>'
                    + '<ul style="width:80%; margin:3px;padding:3px;">发送频率：<select name="select2" onchange="businessmail.changeFreq();return false;" id="bsmfreq">  <option value="0">每周一封</option> <option value="1">每月一封</option></select><select name="select2" id="bsmday"> <option value="1">周日</option><option value="2">周一</option><option value="3">周二</option><option value="4">周三</option><option value="5" >周四</option><option value="6">周五</option><option value="7">周六</option></select><select id="monthselector" style="display:None" >#{monthstr}</select><input name="Input2" id="containFreq" type="checkbox" value="" /> 包含节日</ul>'
                    + '<ul style="margin-top:20px;padding-bottom:20px;width:80%;"><input type="button" '
                    + ' class="yes" value="定制" onclick="businessmail.submit();" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input class="yes" type="button" onclick="changePanel( \'welcome\' );"  value="取消" /> </ul>'
                    + '</div>'
                    + '</div>'
					+ '</td>'
					+ '<td style="vertical-align:top;border-left:1px solid #CCC;">'
                    //地址簿
                    + '<div id="address" class="address" class="bsmaddress" style="float:left;padding-left:3px;;z-index:9 !important">'
                    + '<dl><li>地址簿</li></dl>'
                    + '#{addresses}'
                    + '</div>'
					+ '</td>'
					+ '</tr>'
					+ '</tbody>'
                    +'</table>';
var BussinessEmailListTemplate = '<div class="cfgtemplate">'
                            + '<div class="corner">'
                            + ' <h4>商信计划<b>[<a href="#" class="grey s_rt_business"  onclick="changePanel(\'commerceArea\');">返回商务通首页</a>]</b></h4>'
                            + '</div>'
                            + '<div class="plan" style="margin-left:30px">'
							+ '<div class="bimg img-business4" style="float:left"></div>'
							+ '<div>搜狐VIP邮箱独家推出，智能的商务信函计划，您可定制在半年内，<br/>每周或每月发给商务伙伴一封问候信，方便的维系您的客户关系网!</div>'
                            + '</div>'
                            + '<dl style="clear:both"><dt><input name="button2" type="button" value="删除该计划" onclick="businessmail.deleteBSM();return false;" />'
                            + '类别：#{bsmtype}</dt>'
                            + '#{bsminfo}'
                            + '</dl></div>'
                            ;
/*商信计划*/

//冻结器警告
var frozenAlertTemplate ='<ul>'
					+'<li>您的邮箱已进入<span class="orange">#{EMAILSTATUS}</span>，'
					+'请<a target="_blank" href="http://vip.sohu.com/confirmPassportSuccessAction.action?email='+UserSohuID+'"><b class="orange" style="text-decoration:underline" onclick="try{POPDIV.style.display=POPDIVSHADOW.style.display=\'none\';}catch(e){}">续费</b></a>！</li>'
					+'<li>到期未续费，邮箱将无法使用。</li>'
					+'<li style="margin-top:10px">续费即可享受：</li>'
					+'<li>1．收发信功能/客户端收发邮件功能</li>'
					+'<li>2．1G网络U盘——百兆永久存储空间</li>'
					+'<li>3．[商务通]各模块——24小时商务管家</li>'
					+'<li>4．贵宾专区--尊贵体验</li>'
					+'<li>5．批量群发功能</li>'
					+'</li>'
					+'</ul>';
//220手机邮件模板
var mobileMailCfgTemplate_vip220='<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h3><img src="'+ MailConst.ALL +'/mobile2.gif"  /></h3>'
	+'<h4>手机邮件<b>[<a href="#" onclick="changePanel(\'mailList\', 1);" class="grey">返回收件箱</a>]</b></h4>'
	+'</div>'
	+'<dl style="padding:0px;">'
	+'<dd><font color="#ff6600">仅对S320,S600邮箱开放</font></dd>'
	+'<dd class="orange">由于您的邮箱类型为S220，无法使用手机邮件。</dd>'
	+'<dd>立即<input type="submit" name="button" id="button" value="升级邮箱" onclick="window.open(\'http://vip.sohu.com/upgrade/init.jsp?user=vip220\')"/>到S320或S600，即可开通手机邮件。'
	+'</dd>'
	+'</dl>'
	+'<dl style="padding:30px 0;"><dt>手机邮件优点多多：</dt>'
	+'<dd>1）随时收到新邮件</dd>'
	+'<dd> 2）方便自如地用手机收、发邮件</dd>'
	+'<dd> 3）查询新邮件和阅读、回复新邮件 </dd>'
    +'<dd>4）VIP邮箱容量立即升级为<font color="red">无限容量</font></dd>'
	+'<dd>5）手机发送短信<font color="red">实时找回密码</font>，邮箱更安全 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机输入<font color="red">pw（空格）+email（空格）+新密码 </font><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[例如：<font style="color:red;font-weight:900;">pw '+UserSohuID+' 123456</font>]<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发送到1066666606，即可重置邮箱密码</dd>'
	+'</dl>'
	+'</div>';


var mobileMailCfgTemplate = '<div class="cfgtemplate">'
	+'<div class="corner">'
	+'<h3><img src="'+MailConst.ALL+'/mobile2.gif"/></h3>'
	+'<h4>手机邮件<b>[<a hidefocus="true" href="main#mailList_1" class="grey s_mb_inbox">返回收件箱</a>]</b></h4>'
	+'</div>'
	+'<dl><dd style="color:red">仅对S320,S600邮箱开放</dd></dl>'
	+'<dl>'
	//+'<dd>·<strong class="brown"> [<a hidefocus="true" href="main" class="brown s_mb_query">查询状态</a>]</strong> 查看与邮箱绑定的手机号码</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="main" class="brown s_mb_cancel">取消服务</a>]</strong> 取消手机邮件服务</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="return false;" class="brown s_mb_set">服务设置</a>]</strong> 开通手机邮件后对服务进行设置</dd>'
    +'<dd>·<strong class="brown"> [<a hidefocus="true" href="return false;" class="brown s_mb_advance">高级选项</a>] </strong>手机提醒时间和提醒限制</dd>'
    +'</dl>'
    +'<dl>'
    +'<dt>手机邮件优点多多：</dt>'
	+'<dd>1）随时收到新邮件</dd>'
	+'<dd> 2）方便自如地用手机收、发邮件</dd>'
	+'<dd> 3）查询新邮件和阅读、回复新邮件 </dd>'
    +'<dd> 4）VIP邮箱容量立即升级为<font color="red">无限容量</font></dd>'
	+'<dd>5）手机发送短信<font color="red">实时找回密码</font>，邮箱更安全 <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;手机输入<font color="red">pw（空格）+email（空格）+新密码 </font><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[例如：<font style="color:red;font-weight:900">pw '+UserSohuID+' 123456</font>]<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发送到1066666606，即可重置邮箱密码</dd>'
	+'</dl>'
	+'<dl>'
    +'#{mobile_info}'
	+'</dl>'
	+'<dl>'
	+'<dd>为了不影响您的正常生活，手机邮件做以下限制：</dd>'
	+'<dd>1、每天最多发送50条短信提醒，每月上限500条。</dd>'     
	+'<dd>2、手机闪电邮件提醒每天的发送时间为6点到23点之间</dd>'
	+'</dl>'
	+'</div>';